// 初始化
//PC或ipad下，使用固定的大小
@import 'mixins.config';

@if ($init-config == wechat) {
	// 微信的标签初始化
	view,
	scroll-view,
	cover-image,
	swiper,
	swiper-item,
	image,
	button,
	navigator,
	text,
	form,
	picker,
	i,
	uni-view,
	uni-page-body,
	uni-app,
	uni-body,
	input,
	label,
	textarea {
		box-sizing: border-box;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		-webkit-overflow-scrolling: touch;
		// font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft Yahei', sans-serif;
	}
	page {
		font-size: units(14);
		color: $body-font-color;
	}
} @else {
	// 普通网页样式的初始化

	html,
	body {
		height: 100%;
		color: $body-font-color;
		font-size: $body-font;
		padding: 0;
		margin: 0;
	}
	* {
		box-sizing: border-box;
		-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
		-webkit-overflow-scrolling: touch;
		font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei',
			Tahoma, Simsun, sans-serif;
	}
	img {
		max-width: 100%;
	}
	p {
		line-height: 1.5;
		margin: 0;

		+ p {
			margin-top: 10px;
			margin-bottom: 0;
		}
	}
	ul,
	ol {
		li {
			list-style: none;
		}
	}
	form{
		margin: 0;
	}
}
